﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Lottery.MediaData.Core {
    static class MyExtends {
        /// <summary>
        /// 这里的用途是：把"103" 排序为"310"
        /// </summary>
        /// <param name="s"></param>
        /// <returns></returns>
        public static string MySort(this string s) {
            var data = from item in s.ToCharArray()
                       orderby item descending
                       select item;

            var sb = new StringBuilder();
            foreach (var item in data) {
                sb.Append(item);
            }
            return sb.ToString();
        }
    }
}
